package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 充电桩类型对象 chargers
 * 
 * @author ruoyi
 * @date 2024-08-12
 */
public class Chargers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充电桩序号 */
    private Long cid;

    /** 加盟商序号 */
    private Long id;

    /** 充电桩类型 */
    @Excel(name = "充电桩类型")
    private String type;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brandName;

    /** 安装日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installationDate;

    /** 充电站 */
    @Excel(name = "充电站")
    private Long sid;

    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setBrandName(String brandName) 
    {
        this.brandName = brandName;
    }

    public String getBrandName() 
    {
        return brandName;
    }
    public void setInstallationDate(Date installationDate) 
    {
        this.installationDate = installationDate;
    }

    public Date getInstallationDate() 
    {
        return installationDate;
    }
    public void setSid(Long sid) 
    {
        this.sid = sid;
    }

    public Long getSid() 
    {
        return sid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cid", getCid())
            .append("id", getId())
            .append("type", getType())
            .append("brandName", getBrandName())
            .append("installationDate", getInstallationDate())
            .append("sid", getSid())
            .toString();
    }
}
